Skip to content

Add run_batched to EventLogConsumer#77

Merged
koenvo merged 1 commit intomainfrom
feature/run-batched
Apr 21, 2026
Merged

Add run_batched to EventLogConsumer#77
koenvo merged 1 commit intomainfrom
feature/run-batched

Conversation

@koenvo
Copy link
Copy Markdown
Contributor

@koenvo koenvo commented Apr 16, 2026

Delivers events in batches (List[DomainEvent]) to the handler and only advances the cursor after the whole batch is processed. Lets consumers parallelize I/O-bound work (threads, asyncio) within a batch without a cursor update per event.

The existing run() API is unchanged.

Delivers events in batches (List[DomainEvent]) to the handler and only
advances the cursor after the whole batch is processed. Lets consumers
parallelize I/O-bound work (threads, asyncio) within a batch without
a cursor update per event.

Added type aliases OnEventHandler and OnEventsHandler for clarity.
The existing run() API is unchanged.
@koenvo koenvo force-pushed the feature/run-batched branch from 296106b to bae12f1 Compare April 21, 2026 11:24
@koenvo koenvo merged commit ea1045b into main Apr 21, 2026
13 checks passed
@koenvo koenvo deleted the feature/run-batched branch April 21, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant